package com.youan.serve.controller.swagger;

import com.youan.pangu.security.bean.LoginInfor;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import com.youan.serve.dao.domain.Role;

/**
* <p>
    *  swagger接口描述文件
    * </p>
*
* @author auto_code
* @since 2020-03-04
*/
@Api(tags = "管理接口")
public interface RoleControllerSwagger {

    @ApiOperation(value = "新增一个Role实例")
    Role addRole(Role role, LoginInfor loginInfor) throws Exception;

    @ApiOperation(value = "修改一个Role实例")
    Role updateRole(Role role, LoginInfor loginInfor);

    @ApiOperation(value = "获取所有Role实例")
    List<Role> selectAllRole();

    @ApiOperation(value = "根据主键删除一个Role实例")
    void deleteRoleByRoleId(String roleId) throws Exception;

    @ApiOperation(value = "根据主键获取Role实例")
    Role selectRoleByRoleId(String roleId);

}

